using System.Linq;
using System.Xml;
using Sherwood.Content;

namespace Sherwood.Samples.ArticleMeta
{
    public class ArticleTitleXmlRenderer : IItemXmlRenderer
    {
        public void WriteXml(IRecord record, XmlWriter writer)
        {
            writer.WriteStartElement("articles");
            foreach (var articleMeta in record.Metas.OfType<ArticleMeta>())
            {
                writer.WriteStartElement("article");
                


                writer.WriteEndElement();
            }
            writer.WriteEndElement();
        }
    }
}